﻿Imports System.Linq
Imports DAL
'Imports Microsoft.Reporting.WinForms

Public Class Form1
    'Property EmployeConnecte As Employe


    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load



    End Sub


    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim tel As New Telephone
        tel.Employe = 1
        tel.Telephone = "819 465 2135"
        tel.Detail = "Maison"
        Dim liste As New List(Of Telephone)
        liste.Add(tel)
        'UcTelephone1.TelephonesTest = liste
    End Sub

    Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
        'For Each tel In UcTelephone1.TelephonesTest
        'Console.WriteLine(Tel.Telephone + " " + Tel.detail)
        'Next
    End Sub

    Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
        UcTelephone1.Lecture = Not UcTelephone1.Lecture
    End Sub
End Class
